package com.example.demo.controller;


import com.example.demo.JSONResult;
import com.example.demo.service.SafetyinspectionanalogsensorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hys
 * @since 2021-07-15
 */
@RestController
@RequestMapping("/safetyinspectionanalogsensor")
public class SafetyinspectionanalogsensorController {

    @Autowired
    private SafetyinspectionanalogsensorService safetyinspectionanalogsensorService;

    @PostMapping("/insertAnalogSensorData")
    public JSONResult insertAnalogSensorData(String analogSensorXml) {
        try {
            safetyinspectionanalogsensorService.insertAnalogSensorData("E:\\7.2\\AnalogData\\CoalMineSafetyMonitoring\\1xx000002AQMC20100603152330.xml");
        } catch (Exception e) {
            throw e;
        }
        return JSONResult.success("success");
    }


}

